package cate.game.role.res.holy_pet.core;

import cate.game.res.MixRes;
import cate.game.res.holy_pet.core.HolyPetSingleMission;
import easy.java.dev.note.NoteField;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 场景前端结构
 *
 * @author ShenSL
 * @since 2023/8/26 14:07
 */
@Data
@NoArgsConstructor
public class SingleSceneVO {
    @NoteField("场景ID")
    private int sceneId;
    @NoteField("是否已激活")
    private boolean active;
    @NoteField("景点ID")
    private int placeId;
    @NoteField("未领取的奖励")
    private MixRes reward;
    @NoteField("当前正在进行的任务")
    private HolyPetSingleMission curMission;

    public SingleSceneVO(SingleScenePO po, HolyPetSingleMission mission) {
        this.sceneId = po.getSceneId();
        this.active = po.isActive();
        this.placeId = po.getPlaceId();
        this.reward = po.getReward();
        this.curMission = mission;
    }
}
